#-------------------------------------------------
#
# Project created by QtCreator 2013-09-29T01:55:51
# Version 0.2
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

TARGET = GSPP
TEMPLATE = app

DESTDIR = ../Release

QMAKE_CC = /home/wkp/gcc-4.8.0/bin/gcc
QMAKE_CXX = /home/wkp/gcc-4.8.0/bin/g++

## remove possible other optimization flags
QMAKE_CXXFLAGS_RELEASE -= -O
QMAKE_CXXFLAGS_RELEASE -= -O1
QMAKE_CXXFLAGS_RELEASE -= -O2

# add the desired -O3 if not present
QMAKE_CXXFLAGS_RELEASE += -O3

QMAKE_CXXFLAGS_RELEASE += -Wno-reorder -Wno-narrowing -Wstrict-aliasing=0

SOURCES += main.cpp\
        mainwindow.cpp \
    workspace.cpp \
    manager/treeviewmodel.cpp \
    manager/treeitem.cpp \
    manager/tablemodel.cpp \
    manager/importdatadialog.cpp \
    startdialog.cpp \
    manager/datamanagerwidget.cpp \
    manager/variablesviewwidget.cpp \
    manager/exportdata.cpp \
    data/fpcompression.cpp \
    manager/scriptdialog.cpp \
    manager/resultlogdialog.cpp

HEADERS  += mainwindow.h \
    workspace.h \
    manager/treeviewmodel.h \
    manager/treeitem.h \
    manager/tablemodel.h \
    manager/importdatadialog.h \
    data/gsdata.h \
    startdialog.h \
    plugins/gsplugin.h \
    manager/datamanagerwidget.h \
    manager/variablesviewwidget.h \
    manager/exportdata.h \
    data/fpcompression.h \
    manager/scriptdialog.h \
    manager/resultlogdialog.h

FORMS    += mainwindow.ui \
    manager/importdatadialog.ui \
    startdialog.ui

RESOURCES += \
    gspp.qrc \
    qt_conf.qrc

LIBS += -lGLU
LIBS += -L$$PWD/lib/ -Wl,-Bstatic -lz -Wl,-Bdynamic
QT += opengl

CONFIG += shared
CONFIG -= static

INCLUDEPATH += $$PWD/include/qwt
DEPENDPATH += $$PWD/include/qwt

INCLUDEPATH += $$PWD/include/qwtpolar
DEPENDPATH += $$PWD/include/qwtpolar

INCLUDEPATH += $$PWD/include/qwt3d
DEPENDPATH += $$PWD/include/qwt3d

#INCLUDEPATH += $$PWD/include/
#DEPENDPATH += $$PWD/include/
#LIBS += -L$$PWD/lib -Wl,-Bstatic -litpp_static -Wl,-Bdynamic
#QMAKE_CXXFLAGS +=`itpp-config --cflags`
#LIBS += `itpp-config --static --libs`

INCLUDEPATH += /home/wkp/itpp4.2/include
DEPENDPATH += /home/wkp/itpp4.2/include

INCLUDEPATH += $$PWD/include/gsplot
DEPENDPATH += $$PWD/include/gsplot
#LIBS += -lgsplot
#QMAKE_RPATHDIR = :\'\$\$ORIGIN/lib\'
LIBS += -L/home/wkp/workspace/GSPP/Release/lib -lgsplot
QMAKE_LFLAGS = -Wl,-rpath,\'\$\$ORIGIN/lib\'
